@collapse-prefix-cls: ~"@{css-prefix}collapse";

.@{collapse-prefix-cls}{
    border-radius: 3px;
    /*border: 1px solid @border-color-base;*/

    & > &-item{
        border: 1px solid @border-color-base;
        border-radius: 3px;
        margin-bottom: 10px;
        /*&:first-child {
            border-top: 0;
        }*/
        > .@{collapse-prefix-cls}-header{
            height: 40px;
            line-height: 40px;
            padding-left: 10px;
            padding-right: 60px;
            color: #666;
            cursor: pointer;
            position: relative;
            background-color: @background-color-base;
            .ivu-collapse-chevronicon{
                position: absolute;
                width: 60px;
                height: 40px;
                top: 0;
                right: 0px;
                text-align: center;
                line-height: 40px;  
                color: #999;
            }
            > i{
                transition: transform @transition-time @ease-in-out;
                transform: rotate(90deg);
            }
        }
    }
    &  > &-item&-item-active > &-header > i{
        transform: rotate(-90deg);
    }

    &-content{
        //display: none;
        overflow: hidden;
        color: @text-color;
        /*padding: 0 16px;*/
        background-color: #fff;
        border-top: 1px solid @border-color-base;
        & > &-box {
/*            padding-top: 16px;
            padding-bottom: 16px;*/
        }
    }
    &-item-active > &-content{
        //display: block;
    }
    &-item:last-child {
        > .@{collapse-prefix-cls}-content {
           /* border-radius: 0 0 3px 3px;*/
        }
    }
}
